(function(){
	$(document).on('click', '#js-content', function(e){
	    var target = $(e.target);
	    if(target.hasClass("js-iteminfor")){
	    	$("#content").empty();
	    	newload(target.attr("data-id"));
	    }
	    
	});
	
}());

function newload(id){

	$.ajax({
        type: "GET",
        dataType: "json",
        url: "lisbid",
        data: "id="+id,
        success: function(data){
        	var returnFlag = data.returnFlag;
        	var list = data.list;
            if(returnFlag){
                    $.each(list, function(index, item){
                        $("#content").append("<li>"+
                                "<div class='matrix-module__list__img'>"+
                                    "<div><img src='"+$("#contextPath").val()+item.carouselImage+"' width='71' height='71' alt=''/></div>"+
                                    "<div class='img-qrCode'><img src='"+$("#contextPath").val()+item.qrCode+"' width='71' height='71' alt=''/></div>"+
                                    "</div>"+
                                "<div class='matrix-module__list__text'>"+
                                    "<h5>"+item.title+"</h5>"+
                                    "<p>"+item.content+"</p>"+
                                "</div>"+
                            "</li>");
                    });  
                    
                    $("#pager").hide();
            }
        },
        error: function(msg){
            console.log("加载失败！");
        }
      });
}